import allure


@allure.step("登录")
class shopLoginClass:
    # 登录账户
    @allure.step("登录成功")
    @classmethod
    def login(cls, username, password):
        print("登录成功", username, password)

    # 浏览商品
    @allure.step("浏览商品")
    @classmethod
    def open_goods(cls):
        print("浏览商品")

    # 添加购物车
    @classmethod
    def add_shopping_cart(cls, goods_id='10000'):
        print("添加购物车")

    # 生成订单
    @classmethod
    def buy_goods(cls):
        print("生成订单")

    # 结算成功
    @classmethod
    def pay_goods(cls):
        print("结算成功")

    @classmethod
    def logout(cls):
        print("退出登录")
